class CreateEvents < ActiveRecord::Migration
  def self.up
    create_table :events do |t|
		t.column :name, :string
		t.column :description, :string
		t.column :duration, :string
		t.column :date_begin, :string
		t.column :date_end, :string
		t.column :created_at, :timestamp
		t.column :updated_at, :timestamp
    end
    # add a column event_id to the users table whenever an event is created
    #add_column :users, :event_id, :integer
    #add_column :event_times, :event_id, :integer
  end

  def self.down
    drop_table :events
    remove_column :users, :event_id
    remove_column :event_times, :event_id
  end
end
